#ifndef EditDialog_First
#define EditDialog_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Manager.h"

class Clipper;
class TextView;
class Text;

//---- EditDialog --------------------------------------------------------------

class EditDialog: public Manager {
public:
	MetaDef(EditDialog);
	EditDialog(const char *title);
	~EditDialog();
	void ShowEditDialog(Text*);

	static void ShowEditor(const char *title, Text *t);
protected:
	VObject *DoMakeContent();
	MenuBar *DoMakeMenuBar();
	Point GetInitialWindowSize();
	CommandProcessor *MakeCmdProcessor();
	void Control(int id, int detail, void *data);

protected:
	TextView *textView;
	Clipper *tvClipper;
};

#endif

